package org.example.ipersistent.utils;

import java.io.InputStream;

public class Resources {
  /**
   * 根据配置文件的路径，加载配置文件成字节输入流，存到内存中
   * @param path
   * @return
   */
  public static InputStream getResourceAsStream(String path){
    InputStream stream = Resources.class.getClassLoader().getResourceAsStream(path);
    return stream;
  }
}
